Log Configuration
You can configure logs and modify log configurations.
Create Log Configuration
- Navigate to Settings > Log Configuration.
- Click + Add Log Configuration.
- In the Logger Name field, search or use the dropdown to select a logger. If it's not listed, you can create a new one by entering the name manually.
- Select the Log Level from the drop-down list.
- Select the Timeout for the new log record.
- Click Create.
The new log record is added successfully.
Edit Log Configuration
- Navigate to Settings > Log Configuration
- Choose the log configuration that you want to edit and click on the Edit (pencil) icon under the Actions column.
- Apply the changes for the selected log configuration
- Click Save
The log changes are applied successfully.
Delete Log Configuration
- Navigate to Settings > Log Configuration
- Choose the log configuration that you want to delete and click on the Delete (trashbin) icon under the Actions column.
- Confirm that you want to delete the selected log configuration.
- Click Yes
The log configuration is deleted.
Configure Log Retention
The following data is automatically deleted from DC after reaching a certain age:
- Discovery data (
<installation-path>/dc/var/fsdc/data) - Log data (
<installation-path>/dc/var/fsdc/logs)
The default retention period is one month. To reconfigure it, take these steps on each DC node in your cluster:
- Log in to the node as root.
- Open
/opt/meridian/dc/var/fsdc/conf/netra.conffor editing.
Replace/opt/meridianwith your actual installation path. - Change the following properties:
# set the retention period for /dc/var/fsdc/data
remove_older_data_days_count = 30
# set the retention period for /dc/var/fsdc/logs
remove_older_logs_days_count = 30 - Restart the meridian service:
service meridian-dc stop
service meridian-dc start